//
//  NSDictionary+NSDictionary_GeneralThingsObject.m
//  smarthings
//
//  Created by Stefan Tsvyatkov on 10/21/14.
//  Copyright (c) 2014 Stefan Tsvyatkov. All rights reserved.
//

#import "NSDictionary+NSDictionary_GeneralThingsObject.h"

@implementation NSDictionary (NSDictionary_GeneralThingsObject)

- (void)populateObject:(SMTGeneralThingsObject *)generalObject {
    generalObject.href = self[@"href"];
    if (self[@"name"]) {
        generalObject.name = self[@"name"];
    }
    if (self[@"UUID"]) {
        generalObject.uuid = self[@"UUID"];
    }
}

@end
